package com.aliyun.messagemgt.loghub;

import com.aliyun.openservices.loghub.client.interfaces.ILogHubProcessor;
import com.aliyun.openservices.loghub.client.interfaces.ILogHubProcessorFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author changcong
 */
@Component
public class LogHubProcessorFactory implements ILogHubProcessorFactory {

    @Autowired
    private LogHubProcessor logHubProcessor;

    @Override
    public ILogHubProcessor generatorProcessor() {
        // 生成一个消费实例
        return logHubProcessor;
    }

}
